<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link th:href="@{/emr/css/emr-ui.css}" rel="stylesheet"/>
<link th:href="@{/ajax/libs/datapicker/datepicker3.css}" rel="stylesheet"/>
<body class="white-bg">

    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
    	<a id="zhijiedayin" onclick="windowprint();" href="javascript:void(0);" 
    	style="border: 1px solid #1dc5a3;
    width: 60px;
    position: absolute;
    height: 30px;
    margin-left: 86%;
    text-align: center;
    line-height: 28px;
    color: white;
    background: #1dc5a3;
    border-radius: 4px;">点击打印</a>
    	<form id="idss">
		<table id="printdiv" th:object="${blcx}" style="text-align: center;margin-left: 130px;">
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td><input id="id" name="id" th:field="*{id}"  type="hidden" /></td>
			</tr>
			<tr>
				<td>病人姓名：</td>
				<td><input th:field="*{Patient_Name}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>性别：</td>
				<td><input th:field="*{patient_sex}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>年龄：</td>
				<td><input th:field="*{patient_age}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>手机号：</td>
				<td><input th:field="*{patient_phone}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>身份证号：</td>
				<td><input th:field="*{patient_card}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>病种：</td>
				<td><input th:field="*{patient_Icd}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>是否传染病：</td>
				<td><input th:field="*{patient_sfcrb}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>部门：</td>
				<td><input th:field="*{dept_name}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>床位号：</td>
				<td><input th:field="*{personal_bedId}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>手术名称：</td>
				<td><input th:field="*{personal_shoushuName}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>手术时长：</td>
				<td><input th:field="*{personal_shoushusc}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>术后状态：</td>
				<td><input th:field="*{perosnal_bhzt}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>治疗状态：</td>
				<td><input th:field="*{zhiliaozhuangkuang}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>体温：</td>
				<td><input th:field="*{tiwen}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>脉搏：</td>
				<td><input th:field="*{maibo}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>呼吸：</td>
				<td><input th:field="*{huxi}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>死亡/出院：</td>
				<td><input th:field="*{codes}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>病人状态：</td>
				<td><input th:field="*{bingrenzt}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>治疗结果：</td>
				<td><input th:field="*{zhiliaojieguo}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>出否允许出院：</td>
				<td><input th:field="*{yunxuchuyuan}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>死亡时间：</td>
				<td><input th:field="*{siwangdate}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>死亡地点：</td>
				<td><input th:field="*{siwangaddress}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>病人情况：</td>
				<td><input th:field="*{bingrenJtqk}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>医嘱内容：</td>
				<td><input th:field="*{yizhuNR}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>病人护理前情况：</td>
				<td><input th:field="*{binrenQk}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>点滴名称：</td>
				<td><input th:field="*{diandiName}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
			<tr>
				<td>点滴数量：</td>
				<td><input th:field="*{diandiNum}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
				<td>护理后情况：</td>
				<td><input th:field="*{hulizhihouQk}" class="form-control" type="text" style="border: none;background-color: #fff;" readonly="readonly"></td>
			</tr>
		</table>
		</form>
		
		
    </div>
    <div th:include="include::footer"></div>
    <script th:src="@{/js/jquery-ui-1.10.4.min.js}"></script>
	<script th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
	<script th:src="@{/ajax/libs//datapicker/bootstrap-datepicker.js}"></script>
	
	<script th:src="@{/ajax/libs/beautifyhtml/beautifyhtml.js}"></script>
	<script>
	    $(document).ready(function(){setup_draggable();$("#n-columns").on("change",function(){var v=$(this).val();if(v==="1"){var $col=$(".form-body .col-md-12").toggle(true);$(".form-body .col-md-6 .draggable").each(function(i,el){$(this).remove().appendTo($col)});$(".form-body .col-md-6").toggle(false)}else{var $col=$(".form-body .col-md-6").toggle(true);$(".form-body .col-md-12 .draggable").each(function(i,el){$(this).remove().appendTo(i%2?$col[1]:$col[0])});$(".form-body .col-md-12").toggle(false)}});$("#copy-to-clipboard").on("click",function(){var $copy=$(".form-body").clone().appendTo(document.body);$copy.find(".tools, :hidden").remove();$.each(["draggable","droppable","sortable","dropped","ui-sortable","ui-draggable","ui-droppable","form-body"],function(i,c){$copy.find("."+c).removeClass(c).removeAttr("style")});var html=html_beautify($copy.html());$copy.remove();$modal=get_modal(html).modal("show");$modal.find(".btn").remove();$modal.find(".modal-title").html("复制HTML代码");$modal.find(":input:first").select().focus();return false})});var setup_draggable=function(){$(".draggable").draggable({appendTo:"body",helper:"clone"});$(".droppable").droppable({accept:".draggable",helper:"clone",hoverClass:"droppable-active",drop:function(event,ui){$(".empty-form").remove();var $orig=$(ui.draggable);if(!$(ui.draggable).hasClass("dropped")){var $el=$orig.clone().addClass("dropped").css({"position":"static","left":null,"right":null}).appendTo(this);var id=$orig.find(":input").attr("id");if(id){id=id.split("-").slice(0,-1).join("-")+"-"+(parseInt(id.split("-").slice(-1)[0])+1);$orig.find(":input").attr("id",id);$orig.find("label").attr("for",id)}$('<p class="tools col-sm-12 col-sm-offset-3">						<a class="edit-link">编辑HTML<a> | 						<a class="remove-link">移除</a></p>').appendTo($el)}else{if($(this)[0]!=$orig.parent()[0]){var $el=$orig.clone().css({"position":"static","left":null,"right":null}).appendTo(this);$orig.remove()}}}}).sortable()};var get_modal=function(content){var modal=$('<div class="modal" style="overflow: auto;" tabindex="-1">	<div class="modal-dialog"><div class="modal-content"><div class="modal-header"><a type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</a><h4 class="modal-title">编辑HTML</h4></div><div class="modal-body ui-front">	<textarea class="form-control" 	style="min-height: 200px; margin-bottom: 10px;font-family: Monaco, Fixed">'+content+'</textarea><button class="btn btn-success">更新HTML</button></div>				</div></div></div>').appendTo(document.body);return modal};$(document).on("click",".edit-link",function(ev){var $el=$(this).parent().parent();var $el_copy=$el.clone();var $edit_btn=$el_copy.find(".edit-link").parent().remove();var $modal=get_modal(html_beautify($el_copy.html())).modal("show");$modal.find(":input:first").focus();$modal.find(".btn-success").click(function(ev2){var html=$modal.find("textarea").val();if(!html){$el.remove()}else{$el.html(html);$edit_btn.appendTo($el)}$modal.modal("hide");return false})});$(document).on("click",".remove-link",function(ev){$(this).parent().parent().remove()});
	    $(".input-group.date").datepicker({todayBtn: "linked",keyboardNavigation: !1,forceParse: !1,calendarWeeks: !0,autoclose: !0});
	</script>
    <script type="text/javascript">
	  //直接在本窗口进行打印
	    function windowprint() {
	        
	        var f = document.getElementById("printdiv");
	        window.print();
	    }
	     
	    //新开一个窗口实现打印
	    function myPrint(obj){
	     
	        var newWindow=window.open("打印窗口","_blank");
	        var docStr = obj.innerHTML;
	           newWindow.document.write(docStr);
	        newWindow.document.close();
	        newWindow.print();
	        newWindow.close();
	        
	    }
	</script>
</body>
</html>
